package com.ruoyi.web.enums;

import lombok.Getter;

/**
 * 0=待支付,1=支付完成待接单,2=接单完成待送达,3=订单完成,4=订单取消
 */
@Getter
public enum OrderState {
    WAIT_PAY(0, "待支付"),
    WAIT_DELIVERY(1, "支付完成待接单"),
    DELIVERY(2, "接单完成待送达"),
    ORDER_COMPLETE(3, "订单完成"),
    ORDER_CANCEL(4, "订单取消");

    private final int code;
    private final String message;

    OrderState(int code, String message) {
        this.code = code;
        this.message = message;
    }

}
